package com.zisu.aradvertising.repository;


import com.zisu.aradvertising.pojo.Advertiser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DaoAdvertiser extends JpaRepository<Advertiser,Integer> {
    //账号密码登录
    Advertiser findAdvertiserByAemail(String Aemail);
    Advertiser findAdvertiserByAemailAndApassword(String Aemail, String Apassword);
    //返回所有广告商信息
    List<Advertiser> findAll();
    //返回单个广告商信息
    Advertiser findByAid(int aid);



}
